﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Finder.Data
{
    using System.Data.Common;

    public class EmployeesDataAccess
    {
        /// <summary>
        /// Delfin Data context
        /// </summary>
        public static DelfinDataContext DelfinDataContext = new DelfinDataContext();

        /// <summary>
        /// Gets the employees.
        /// </summary>
        /// <value>The employees.</value>
        public static IQueryable<DEL_TB_Pracownik> Employees
        {
            get
            {
                return from q in DelfinDataContext.DEL_TB_Pracowniks
                             where q.prc_Usuniety == false
                             select q;
            }
        }
    }
}
